import request from '@/utils/request'

// 查询灰名册管理列表
export function listGrey(query) {
  return request({
    url: '/bank/grey/list',
    method: 'get',
    params: query
  })
}

// 查询灰名册管理详细
export function getGrey(customerId) {
  return request({
    url: '/bank/grey/id/' + customerId,
    method: 'get'
  })
}
// 新增灰名册管理
export function addGrey(data) {
  return request({
    url: '/bank/grey',
    method: 'post',
    data: data
  })
}

// 修改灰名册管理
export function updateGrey(data) {
  return request({
    url: '/bank/grey',
    method: 'put',
    data: data
  })
}

// 删除灰名册管理
export function delGrey(customerId) {
  return request({
    url: '/bank/grey/' + customerId,
    method: 'delete'
  })
}
